<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<script>
	$(document).ready(function() {
		//聚焦第一个输入框
		$("#name").focus();
		//为inputForm注册validate函数
		$("#inputForm").validate({
			rules : {
				qrCode : {
					required : true,
					number : true
				},
				createScale : "required",
				memo : "required",
				createScale : "number"
			}
		});
	});
</script>
<form id="inputForm" class="well form-inline" action="${ctx}/adoms/qrBoxCode/save" method="post">
	<input type="hidden" name="id" value="${qrBoxCode.id}" />
	<input type="hidden" name="state" value="${qrBoxCode.state}" />
	<table class="table table-striped table-bordered table-condensed">
		<thead>
			<i class="icon-flag"></i>
			<strong>箱码表单</strong>
		</thead>
		<tr>
			<td class="span2">箱码名称:</td>
			<td>
				<input id="qrName" name="qrName" type="text" value="${qrBoxCode.qrName}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>箱码编号:</td>
			<td>
				<input id="qrCode" name="qrCode" type="text" value="${qrBoxCode.qrCode}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>生成比例:</td>
			<td>
				箱码:商品二维码 = 1:
				<input class="span1" id="createScale" name="createScale" type="text" value="${qrBoxCode.createScale}" size="10" maxlength="2" />
				<span class="tBlue">0~99</span>
			</td>
		</tr>
		<tr>
			<td>备注:</td>
			<td>
				<textarea id="memo" name="memo" rows="4" class="span6">${qrBoxCode.memo}</textarea>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input class="btn" type="submit" value="提交" />
				&nbsp;
				<input class="btn" type="button" value="返回" back="back" />
			</td>
		</tr>
	</table>
</form>
